#ifndef PARAMSET_H
#define PARAMSET_H

#include <QWidget>
#include "ettadatastruct.h"
#include "blldataflow.h"
#include "sqlhelper.h"
#include <QLabel>
#include <QCheckBox>
#include <QLineEdit>
#include <QToolButton>
#include "paramadd.h"
#include "parammodify.h"
#include "paramdelete.h"

namespace Ui {
class ParamSet;
}

class ParamSet : public QWidget
{
    Q_OBJECT

public:
    explicit ParamSet(QWidget *parent = nullptr);
    ~ParamSet();

signals:


private slots:
    void on_btnParamAdd_clicked();
    void showAllParametersSlot(bool scrollToBottom = false);
    void checkEnableCountSlot();
    void setWidgetVisibleSlot(int permission);
    void modifyParamSlot();
    void deleteParamSlot();
    void retranslateUiSlot();
    void setWidgetParent();

private:
    void initWidget();
    void retranslateTable();

private:
    Ui::ParamSet *ui;
    BllDataFlow * bdf;
    SqlHelper * sqlHelper;
    ParamAdd * paramAdd;
    ParamModify * paramModify;
    ParamDelete * paramDelete;
};

#endif // PARAMSET_H
